package problem;

public class Triangle extends Shape{
    double b1;
    double b2;
    double b3;

    public Triangle(double b1,double b2,double b3) {
        this.b1 = b1;
        this.b2 = b2;
        this.b3 = b3;
    }

    @Override
    double getOutline() {
        return b1 + b2 + b3;
    }

    @Override
    double getArea() {
        return (b1 + b2 + b3) / 2;
    }
}
